<?php
/**
 *  View Interface
 *
 */
class Yz_View_NotModified
    extends Yz_Class
    implements Yz_View_Interface
{


    /**
     *  usually called by the response object which is supplied as argument
     *      in order to be notified by the view (set headers, status etc)
     *  @param Yz_HTTP_Response_Interface $rs
     *  @return string
     */
    public function render(Yz_HTTP_Response_Interface $rs)
    {
        $rs->setStatus($rs::STATUS_NOT_MODIFIED);
        return '';
    }

    /**
     *
     */
    public function setContent( $text )
    {
        throw new Yz_Exception("Can not set content to this view");
        return $this;
    }

} // class

